Skip to content

Comments

Isolate client code#1

Open
ItsNickBarry wants to merge 3 commits intodevfrom
client
Open

Isolate client code#1
ItsNickBarry wants to merge 3 commits intodevfrom
client

Conversation

@ItsNickBarry
Copy link

This PR moves client code to its own subdirectory, distinguishing between provider and consumer clients. It also sends inference requests through the pi-ai package rather than through OpenClaw.

ItsNickBarry and others added 2 commits February 21, 2026 06:25
… subdirs

Move scattered client code under src/client/ with role-based organization:
- src/client/ → src/client/consumer/ (HTTP client for purchasing inference)
- src/ws/ → src/client/provider/ws/ (WebSocket client for offering inference)
- src/schemas/ → src/client/provider/schemas/ (protocol schemas)
- src/auth/ → src/client/auth/ (shared authentication)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Call the LLM directly from the plugin using pi-ai's streamSimple/completeSimple
instead of forwarding requests to the OpenClaw gateway at localhost:18789.

Model config is read from <agentDir>/openclaw.json and credentials/model
registry from auth.json + models.json in the agent directory. Startup fails
fast if any of these are missing or misconfigured.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ItsNickBarry ItsNickBarry requested a review from xamdel February 21, 2026 14:22
@ItsNickBarry ItsNickBarry marked this pull request as ready for review February 21, 2026 14:22
Standardize terminology: "supplier" for the marketplace role that sells
inference, "provider" reserved for LLM providers (e.g. anthropic) and
the OpenClaw plugin API which uses its own "provider" terminology.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant